<!--{inc(header.view.html)}-->

<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                                 <li><a href="#" class="nav_icon"  target="mainframe">备份数据库</a></li>


	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>备份数据库</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span > 此操作将会将数据库结构以及数据全部备份,您可以根据您的需求设定单个数据备份文件的大小。</span>
                                    </div>


<form method="post" name="myform" action="?app=database&act=backup&task=backup">
<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center"  class="table_style">
<tbody>

<tr>
	<td width="30" class="bold"><input name='chkall' type='checkbox' id='chkall' onclick='checkall(this.form)' value='check' checked></td>
	<td width="60%" class="bold">数据表</td>
	<td width="20%" class="bold">记录数</td>
	<td class="bold">(Total: <font color="#FF0000">{$totalsize}</font>M)</td>
</tr>
                                 
<!--{if (count($bktables))}-->
                                 
<!--{foreach($bktables as $_key => $_value )}-->                                    

<tr class="{$color} td_line" height="20">
    <td align="center"><input type="checkbox" name="tables[]" value="{$_value}" checked /></td>
    <td>{$_value}</td>
    <td>&nbsp;{$bkresults.$_key}</td>
	<td>&nbsp;{$size.$_key} M</td>
</tr>

<!--{/foreach}-->

<!--{/if}--> 
 

  <tr>
    <td colspan="5" align="center">单个备份SQL文件大小<input type="text" name="sizelimit" value="2048" size=5> K <input type="submit" class="buton" value="执行备份" ></td>
  </tr> 
 
 </tbody>
</table>
</form> 

 <script type="text/javascript">
function checkall(form) {
	for(var i = 0;i < form.elements.length; i++) {
		var e = form.elements[i];
		if (e.name != 'chkall' && e.disabled != true) {
			e.checked = form.chkall.checked;
		}
	}
}
</script>                               
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 

                 </div>

</div>



<!--{inc(footer.view.html)}-->